var vm = new Vue({
    el:"#head",
    data:{
        username:"",
    },
    methods:{
    },
    created:function () {
        $.ajax({
            type:"get",
            url: "/authUser/info",
            contentType:'application/x-www-form-urlencoded',
            dataType:"json",
            async:true,
            data:{},
            success:function(result){
                if (result.code == 500) {
                    console.log(result)
                    alert(result.msg)
                    window.location.href= "/login.html"
                }else{
                    vm.$data.username=result.data.userTrueName;
                }
            }
        });
    }
})